package com.wicket.okrcomponent.biz.service.dto.common;

import com.wicket.okrcomponent.common.dto.BaseDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import javax.validation.constraints.NotNull;
import lombok.Data;
import java.util.Objects;

/**
 * @desc OffsetNdaysInTimePointIntervalDto
 * @使用场景
 */
@Data
public class OffsetNdaysInTimePointIntervalDto
  extends BaseDto
  implements Serializable {

  /**
   * 自定义字段
   */
  @NotNull(message = "自定义字段不能为空")
  @ApiModelProperty("自定义字段")
  private String customField;

  /**
   * 通用时间字段
   */
  @NotNull(message = "通用时间字段不能为空")
  @ApiModelProperty("通用时间字段")
  private Date comTimeField;

  /**
   * 排序
   */
  @NotNull(message = "排序不能为空")
  @ApiModelProperty("排序")
  private Long orderNumber;
@Override
  public boolean equals(Object o) {
      if (this == o) return true;
      if (o == null || getClass() != o.getClass()) return false;
      if (!super.equals(o)) return false;
      OffsetNdaysInTimePointIntervalDto that = (OffsetNdaysInTimePointIntervalDto) o;
      return  customField == that.customField&&comTimeField == that.comTimeField&&orderNumber == that.orderNumber;
    }
@Override
  public int hashCode() {
      return Objects.hash(super.hashCode(), customField,comTimeField,orderNumber);
    }

}
